//
//  UIApplication+Manager.h
//  高仿暴走斗图
//
//  Created by key on 16/4/26.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, kApplicationOpenURLType) {
    
    kApplicationOpenURLTypeSendMessage,
    kApplicationOpenURLTypeCallPhone,
    kApplicationOpenURLTypeOpenWebResources,
    kApplicationOpenURLTypeOpenAPP,
    kApplicationOpenURLTypeSendEmail,
};

@interface UIApplication (Manager)

/**
 *  获取唯一UIApplication对象
 *
 *  @return 唯一UIApplication对象
 */
+ (UIApplication *)application;

/**
 *  发短信
 *
 *  @param iPhone 手机号码
 */
- (void)sendMessageToIPhoneNumber:(NSString *)iPhone;

/**
 *  发邮件
 *
 *  @param address 邮箱地址
 */
- (void)sendEmailToAddress:(NSString *)address;

/**
 *  打电话
 *
 *  @param number 电话号码
 */
- (void)callPhoneToNumber:(NSString *)number;

/**
 *  打开网页资源
 *
 *  @param urlString 网页链接
 */
- (void)openWebToURLString:(NSString *)urlString;

@end
